package com.example.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
import java.util.Collection;
import java.util.Set;

@Data
public class AccountInfo implements Serializable {

    private static final long serialVersionUID = 276814498040762172L;

    private String uuid;
    private Integer accNo;
    private String pid;
    private String logonName;
    @JsonIgnore
    private String password;
    private String cardNo;
    private String cardId;
    private String idCard;
    private String trueName;
    private Integer kind;
    private Integer ident;
    private Integer status;
    private Integer localstatus;
    private Integer classId;
    private String className;
    private Integer subsidy;
    private Integer sex;
    private String handPhone;
    private String email;
    private Integer deptId;
    private String deptName;
    private Integer birthday;
    private Integer balance;
    private Integer freeTime;
    private Integer useQuota;
    private Integer roleId;
    private Integer roleLevel;
    /**
     * 0是管理员， 1非管理员
     */
    private Integer manager;
    private Set<String> permsSet;
    private String token;
    private Integer property;
    private Integer expiredDate;
    private Collection<GrantedAuthority> authorities;
}
